//
//  UIView+FrameExtension.h
//  TMT4IOS
//
//  Created by chenlang on 15/9/11.
//  Copyright (c) 2015年 shadow. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (FrameExtension)

/*!
 *  Frame.orign字段
 */
@property (nonatomic, assign) CGPoint frameOrign;

/*!
 * Frame.orign.x
 */
@property (nonatomic, assign) CGFloat frameLeft;

/*!
 * Frame.orign.y
 */
@property (nonatomic, assign) CGFloat frameTop;

/*!
 * Frame.orign.x + Frame.size.width
 */
@property (nonatomic, assign) CGFloat frameRight;

/*!
 * Frame.orign.y + Frame.size.height
 */
@property (nonatomic, assign) CGFloat frameBottom;

/*!
 * Bounds.orign.x
 */
@property (nonatomic, assign, readonly) CGFloat boundsLeft;

/*!
 * Bounds.orign.y
 */
@property (nonatomic, assign, readonly) CGFloat boundsTop;

/*!
 * Bounds.orign.x + Bounds.size.width
 */
@property (nonatomic, assign, readonly) CGFloat boundsRight;

/*!
 * Bounds.orign.y + Bounds.size.height
 */
@property (nonatomic, assign, readonly) CGFloat boundsBottom;

/*!
 * Frame.size.width
 */
@property (nonatomic, assign) CGFloat frameWidth;

/*!
 * Frame.size.height
 */
@property (nonatomic, assign) CGFloat frameHeight;

/*!
 * 横向中点
 */
@property (nonatomic, assign) CGFloat centerX;

/*!
 * 纵向中点
 */
@property (nonatomic, assign) CGFloat centerY;

/*!
 @method
 @abstract view平移方法
 @discussion
 
 
 @param hOffset 水平方向偏移量
 @param vOffset 竖直方向偏移量
 
 */
- (void)moveViewWithHorizontalOffset:(CGFloat)hOffset andVerticalOffset:(CGFloat)vOffset;

@end
